package com.anyou.mall.sho.service;

import com.anyou.common.core.domain.ApiResult;
import com.anyou.mall.sho.domain.CarPartsShopAudit;
import com.anyou.mall.sho.param.IsPassCarPartsShopAuditParam;
import com.anyou.mall.sho.param.IsPassCarPartsShopCertAudit;
import com.anyou.mall.sho.vo.CarPartsShopAuditListVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * 汽配商入住审核Service接口
 * 
 * @author gaochaohao
 * @date 2022-03-18
 */
public interface ICarPartsShopAuditService extends IService<CarPartsShopAudit>
{
    /**
     * 查询汽配商入住审核
     * 
     * @param carPartsShopAuditId 汽配商入住审核主键
     * @return 汽配商入住审核
     */
    public CarPartsShopAudit selectCarPartsShopAuditByCarPartsShopAuditId(Long carPartsShopAuditId);

    /**
     * 查询汽配商入住审核列表
     * 
     * @param carPartsShopAudit 汽配商入住审核
     * @return 汽配商入住审核集合
     */
    public List<CarPartsShopAuditListVo> selectCarPartsShopAuditList(CarPartsShopAudit carPartsShopAudit);

    /**
     * 新增汽配商入住审核
     * 
     * @param carPartsShopAudit 汽配商入住审核
     * @return 结果
     */
    public int insertCarPartsShopAudit(CarPartsShopAudit carPartsShopAudit);

    /**
     * 修改汽配商入住审核
     * 
     * @param carPartsShopAudit 汽配商入住审核
     * @return 结果
     */
    public int updateCarPartsShopAudit(CarPartsShopAudit carPartsShopAudit);

    /**
     * 批量删除汽配商入住审核
     * 
     * @param carPartsShopAuditIds 需要删除的汽配商入住审核主键集合
     * @return 结果
     */
    public int deleteCarPartsShopAuditByCarPartsShopAuditIds(Long[] carPartsShopAuditIds);

    /**
     * 删除汽配商入住审核信息
     * 
     * @param carPartsShopAuditId 汽配商入住审核主键
     * @return 结果
     */
    public int deleteCarPartsShopAuditByCarPartsShopAuditId(Long carPartsShopAuditId);

    /**
     * 是否通过汽配商审核
     * @param isPassCarPartsShopAuditParam
     * @return
     */
    public ApiResult isPassCarPartsShopAudit(IsPassCarPartsShopAuditParam isPassCarPartsShopAuditParam);

    /**
     * 根据汽配商审核id获取汽配商审核详情
     * @param carPartsShopAuditId
     * @return
     */
    public CarPartsShopAuditListVo selectCarPartsShopAuditDetailsByCarPartsShopAuditId(Long carPartsShopAuditId);

    /**
     * 批量通过审核
     * @param carPartsShopAuditIds
     * @return
     */
    ApiResult allPassPassCarPartsShopAudit(Long[] carPartsShopAuditIds);

    /**
     * 批量通过认证
     * @param carPartsShopAuditIds
     * @return
     */
    ApiResult allPassPassCarPartsShopAudit2(Long[] carPartsShopAuditIds);

    /**
     * 是否通过认证
     * @param isPassCarPartsShopCertAudit
     * @return
     */
    ApiResult isPassCarPartsShopAudit2(IsPassCarPartsShopCertAudit isPassCarPartsShopCertAudit);

    /**
     *  //根据汽配商入驻申请表id新增汽配商表
     * @param carPartsShopAuditId
     * @return
     */
    int addCarPartsCity(Long carPartsShopAuditId);

}
